package md.mru.frontend.beans;

import md.mru.frontend.utils.Tabs;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import javax.faces.bean.ViewScoped;

/**
 * @author sergiu.marin
 * @since 29.03.2014
 */
@ManagedBean(name = "menuBean")
@ViewScoped
public class MenuBean {

    private int subMenuIndex;

    public void employmentDataTab() {
        subMenuIndex = Tabs.EMPLOYMENT_DATA.ordinal();
    }

    public void skillsDataTab() {
        subMenuIndex = Tabs.SKILLS_DATA.ordinal();
    }

    public void additionalDataTab() {
        subMenuIndex = Tabs.ADDITIONAL_DATA.ordinal();
    }

    public int getSubMenuIndex() {
        return subMenuIndex;
    }

    public void setSubMenuIndex(int subMenuIndex) {
        this.subMenuIndex = subMenuIndex;
    }

}
